Skip to main content

Token Denoms

Queries the available token denoms for the specified token Id on the specified chains.

query Token_denoms($denom: String, $tokenId: String, $chainUids: [String!]) {
token {
token_denoms(denom: $denom, token_id: $tokenId, chain_uids: $chainUids) {
denoms {
id
chain_uid
token_type {
... on NativeTokenType {
native {
denom
}
}
... on SmartTokenType {
smart {
contract_address
}
}
... on VoucherTokenType {
voucher
}
}
chain_type
}
id
token_id
}
}
}

Example

curl --request POST \
    --header 'content-type: application/json' \
    --url 'https://api.euclidprotocol.com/graphql' \
    --data '{"query":"query Token_denoms($denom: String, $tokenId: String, $chainUids: [String!]) {\n  token {\n    token_denoms(denom: $denom, token_id: $tokenId, chain_uids: $chainUids) {\n      denoms {\n        id\n        chain_uid\n        token_type {\n          ... on NativeTokenType {\n            native {\n              denom\n            }\n          }\n          ... on SmartTokenType {\n            smart {\n              contract_address\n            }\n          }\n          ... on VoucherTokenType {\n            voucher\n          }\n        }\n        chain_type\n      }\n      id\n      token_id\n    }\n  }\n}","variables":{"denom":"eth","tokenId":null,"chainUids":null}}'

Open in Playground

Example Response

{
"data": {
"token": {
"token_denoms": [
{
"denoms": [
{
"id": "TokenDenomWithChainType:ethereum:evm:native:eth",
"chain_uid": "ethereum",
"token_type": {
"native": {
"denom": "eth"
}
},
"chain_type": "evm"
},
{
"id": "TokenDenomWithChainType:arbitrum:evm:native:eth",
"chain_uid": "arbitrum",
"token_type": {
"native": {
"denom": "eth"
}
},
"chain_type": "evm"
},
{
"id": "TokenDenomWithChainType:optimism:evm:native:eth",
"chain_uid": "optimism",
"token_type": {
"native": {
"denom": "eth"
}
},
"chain_type": "evm"
},
{
"id": "TokenDenomWithChainType:base:evm:native:eth",
"chain_uid": "base",
"token_type": {
"native": {
"denom": "eth"
}
},
"chain_type": "evm"
}
],
"id": "TokenDenomWithTokenIDResponse:eth",
"token_id": "eth"
}
]
}
}
}

Arguments

ArgumentTypeDescription
denomStringOptional filter to match a specific token denomination.
tokenIdStringOptional filter to match a specific token identifier.
chainUids[String!]Optional list of chain UIDs to filter the token denoms by chain.

Return Fields

FieldTypeDescription
idStringUnique identifier for the token denom response object.
token_idStringThe token identifier being queried.
denomsDenom[]Token representations available across the matching chains.

Denom

FieldTypeDescription
idStringUnique identifier for the denom entry.
chain_uidStringThe chain UID where this token representation exists.
token_typeTokenTypeThe token representation on that chain.
chain_typeStringThe chain family for this denom entry, for example evm or cosmwasm.

TokenType

FieldTypeDescription
nativeNativeDetails of native token denoms.
smartSmartDetails of smart-token contract addresses.
voucherJSONVoucher marker payload for voucher token representations.

Native

FieldTypeDescription
denomStringThe denomination of the native token.

Smart

FieldTypeDescription
contract_addressString!The contract address of the smart token.